package com.example.homework.homework02;

// 厨师类
public class Chef extends People {

    public Chef(String id, String name, double salary) {
        super(id, name, salary);
    }

    @Override
    public void work() {
        System.out.println("工号为：" + getId() + "姓名为：" + getName() + "工资为：" + getSalary() + "的厨师正在吃肉");
    }

    public void cook() {
        System.out.println("厨师正在炒菜...");
    }
}
